package com.crm.customers.dao.impl;

import org.springframework.stereotype.Repository;

import com.crm.base.dao.BaseDao;
import com.crm.customers.dao.CustomerServiceDao;
import com.crm.customers.model.CusService;

@Repository("customerServiceDao")
public class CustomerServiceDaoImpl extends BaseDao implements CustomerServiceDao {
	
	private static final String MAPPER_NAMESAPCE = "CustomerServiceMapper.";

	@Override
	public int insert(CusService cs) {
		return insert(MAPPER_NAMESAPCE+"insertservice", cs);
	}

	@Override
	public CusService getCsByParams(CusService cs) {
		return selectOne(MAPPER_NAMESAPCE+"getCsByParams", cs);
	}

	@Override
	public int update(CusService cs) {
		return update(MAPPER_NAMESAPCE+"update", cs);
	}

}
